home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / AIAT 1.0.1 / Examples / Sources / PowerPlantStorage / PowerPlantStoreStream.h < prev   
Encoding:
Text File  |  1997-09-11  |  899 b   |  26 lines  |  [TEXT/CWIE]

  1. // PowerPlantStoreStream.h
  2. //    Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4.  
  5. // Subclass of HFSStoreStream that uses PowerPlant's support for threaded, asynch i/o.
  6.  
  7. #pragma once
  8. #include "HFSStoreStream.h"
  9.  
  10. class PowerPlantStoreStream : HFSStoreStream {
  11. public:
  12.                 PowerPlantStoreStream(short vRef, long dirId, const StringPtr fileName,
  13.                                       OSType creator = 'VTWN', OSType fileType = 'STOR');
  14. //                PowerPlantStoreStream(PowerPlantStoreStream& s) : HFSStoreStream(s) {}
  15.  
  16.     virtual IAStoreStream*    Clone();
  17. protected:
  18.                 // constructor for use by Clone()
  19.                 PowerPlantStoreStream(short vRef, long dirId, const StringPtr fileName,
  20.                                       OSType creator, OSType fileType, bool isOpen, bool isWritable,
  21.                                          short fRefNum);
  22.  
  23.     void                    Write(uint32 address, const byte* data, uint32 length);
  24.     uint32                    Read(uint32 address, byte* data,  uint32 length);
  25. };
  26.